package com.ymttest.database.model;

import java.lang.reflect.Field;
import java.math.BigDecimal;

import net.sf.json.JSONObject;

import com.ymttest.utils.DataUtil;


public class OrderItemInfoForRelated {
	/**
	 * 商品个数
	 */
	private int Amount;
	
	 /**
     * 商品标题
     */
    private String Title;


    /**
     * 商品id
     */
    private String ProductId;


    /**
     * 商品规格id
     */
    private String CatalogId;


    /**
     * 商品个数
     */
    private int Smount;


    /**
     * 商品成交价
     */
    private BigDecimal ProductPrice;


    /**
     * 平摊商家优惠券金额
     */
    private BigDecimal SellerCouponAmount;


    /**
     * 平摊码头平台优惠券金额
     */
    private BigDecimal YmtCouponAmount;


    /**
     * 平摊调整金额
     */
    private BigDecimal Discount;


    /**
     * 平摊运费
     */
    private BigDecimal Freight;


    /**
     * 商品优惠信息
     */
    private ProductPromotion Promotion;
    
    /**
     * 是否支持7天无条件退款
     */
    private boolean SupportRtnWithoutReason;

	public int getAmount() {
		return Amount;
	}

	public void setAmount(int amount) {
		Amount = amount;
	}

	public String getTitle() {
		return Title;
	}

	public void setTitle(String title) {
		Title = title;
	}

	public String getProductId() {
		return ProductId;
	}

	public void setProductId(String productId) {
		ProductId = productId;
	}

	public String getCatalogId() {
		return CatalogId;
	}

	public void setCatalogId(String catalogId) {
		CatalogId = catalogId;
	}

	public int getSmount() {
		return Smount;
	}

	public void setSmount(int smount) {
		Smount = smount;
	}

	public BigDecimal getProductPrice() {
		return ProductPrice;
	}

	public void setProductPrice(BigDecimal productPrice) {
		ProductPrice = productPrice;
	}

	public BigDecimal getSellerCouponAmount() {
		return SellerCouponAmount;
	}

	public void setSellerCouponAmount(BigDecimal sellerCouponAmount) {
		SellerCouponAmount = sellerCouponAmount;
	}

	public BigDecimal getYmtCouponAmount() {
		return YmtCouponAmount;
	}

	public void setYmtCouponAmount(BigDecimal ymtCouponAmount) {
		YmtCouponAmount = ymtCouponAmount;
	}

	public BigDecimal getDiscount() {
		return Discount;
	}

	public void setDiscount(BigDecimal discount) {
		Discount = discount;
	}

	public BigDecimal getFreight() {
		return Freight;
	}

	public void setFreight(BigDecimal freight) {
		Freight = freight;
	}

	public ProductPromotion getPromotion() {
		return Promotion;
	}

	public void setPromotion(ProductPromotion promotion) {
		Promotion = promotion;
	}

	public boolean isSupportRtnWithoutReason() {
		return SupportRtnWithoutReason;
	}

	public void setSupportRtnWithoutReason(boolean supportRtnWithoutReason) {
		SupportRtnWithoutReason = supportRtnWithoutReason;
	}
	
	public String toString(){
		return JSONObject.fromObject(this).toString();
	}
	
	public static void main(String[] args) {
		Class c = OrderItemInfoForRelated.class;
		for (Field f : c.getDeclaredFields()) {
			String s = f.getName();
			System.out.println("DataUtil.verify(exp.get"
					+ DataUtil.toUpperCaseFirstOne(s) + "(), act.get"+DataUtil.toUpperCaseFirstOne(s)
					+ "(),\"验证OrderItemInfoList[]." + s
					+ "\");");
		}
	}
}
